
package org.cuatrovientos.mazmorra;

import java.util.Random;

/**
 * @author mikel_luquin
 *
 */
public class Dice {
	private int faces;
	private boolean zero;
	

	public Dice(int faces, boolean zero) {
		this.faces = faces;
		this.zero = zero;
	}
	
	public int MoreDices(){
		Random rand = new Random();
		if (zero) {return rand.nextInt(faces);
		}
		return rand.nextInt(faces)+1;
	}
}
